package creatorMode.singletonPattern.lazy;
//不支持多线程
public class Singleton {
    private Singleton (){

    }
    private static Singleton singleton;

    public static Singleton getInstance(){
        if(singleton==null){
            singleton=new Singleton();
        }
        return singleton;
    }

}
